package functionReference;

interface MyTrans<P,R>{
	public R transform(P p);
}
public class StaticFunctionReferenceTest {
	public static void main(String[] args) {
		MyTrans<String,Integer> mt = Integer::parseInt;
		int result = mt.transform("100")*20;
		System.out.println(result);
		
		MyTrans<String,Double> mt2 = Double::parseDouble;
		double result2 = mt2.transform("1.1")+2.2;
		System.out.println(result2);
	}
	
}
